package com.clarence.dada.core.auth.entity.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 登录操作的响应结果
 *
 * @author fengshuonan
 * @since 2020/10/19 14:17
 */
@Data
public class LoginDto {

    /**
     * 登录人id
     */
    @Schema(title = "登录人id", example = "1")
    private Long userId;

    /**
     * 登录人的token
     */
    @Schema(title = "登录人的token", example = "tokenString")
    private String token;

    /**
     * 用于普通登录的组装
     *
     * @author fengshuonan
     * @since 2021/5/25 22:31
     */
    public LoginDto(Long userId, String token) {
        this.userId = userId;
        this.token = token;
    }

}
